import type { AxiosResponse } from "axios";
import { api_get_song } from "@/api/api_everyday";

export const retryGetSong = (res: AxiosResponse) => {
    const { data: result } = res;

    if (Object.keys(result.data).length === 0) {
        api_get_song().then(song => {
            console.log(23434534);
            res.data = song;
            return res;
        });
    }
    console.log(123);
    return res;
};
